minetest.register_craftitem("lunorecipes:milk", {
	description = "Leite (SP+1)",
	inventory_image = "obj_milk_box.png",
	groups = { mobs=2, eat=2 },
	on_use = function(itemstack, user, pointed_thing)
		return lunorecipes.doEat(user, itemstack, 0, 2, "obj_gulp")
	end,
})

minetest.register_alias("milk"	,"lunorecipes:milk")
minetest.register_alias("leite"	,"lunorecipes:milk")

--#########################################################################################################

minetest.register_craftitem("lunorecipes:milk_barrel", {
	description = "Barril de Leite",
	inventory_image = "obj_milk_barrel.png",
	groups = { mobs=2 },
})

minetest.register_craft({
	output = "lunorecipes:milk_barrel",
	recipe = {
		{"lunorecipes:milk"	, "lunorecipes:milk"	, "lunorecipes:milk"},
		{"lunorecipes:milk"	, "lunorecipes:milk"	, "lunorecipes:milk"},
		{"lunorecipes:milk"	, "lunorecipes:milk"	, "lunorecipes:milk"},
	},
})

minetest.register_craft({
	output = "lunorecipes:milk 9",
	recipe = {
		{"lunorecipes:milk_barrel"},
	},
})

minetest.register_alias("milkbarrel"		,"lunorecipes:milk_barrel")
minetest.register_alias("barrildeleite"	,"lunorecipes:milk_barrel")
minetest.register_alias("galaodeleite"		,"lunorecipes:milk_barrel")

--#########################################################################################################

minetest.register_craftitem("lunorecipes:cheese", {
	description = "Queijo (SP+1)",
	inventory_image = "obj_cheese.png",
	groups = { mobs=2, eat=2  },
	on_use = function(itemstack, user, pointed_thing)
		return lunorecipes.doEat(user, itemstack, 0, 2, "obj_chew")
	end,
})

minetest.register_alias("cheese", "lunorecipes:cheese")
minetest.register_alias("queijo", "lunorecipes:cheese")

if minetest.registered_items["lunorecipes:cheese"] then
	minetest.register_craft({
		type = "cooking",
		output = "lunorecipes:cheese 2",
		recipe = "lunorecipes:milk",
		cooktime = 5,
	})
end
